// 每个角色拥有的模块权限
const path = [
    {
        label: '统计',
        path: '/statistics',
        icon: 'icon_statistics',
        route_name: 'management.statistics'
    },
    {
        label: '设置',
        path: '/setting',
        icon: 'icon_setting',
        route_name: 'management.config'
    }
];
export default function getRolePath(permissionList, userPermissions) {
    const userPermissionsGroup = userPermissions.split(',');
    const routeNames = [];
    permissionList.map(it => {
        if (userPermissionsGroup.includes(it.id)) {
            routeNames.push(it.route_name);
        }
    });
    return path.filter(it => routeNames.includes(it.route_name));
}
